﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Grishko.DataTier;
using System.ComponentModel;

namespace OutdoorLib.BaseEntity.Dictionary
{
    /// <summary>
    /// Категория справочника
    /// </summary>
    public class DictionaryCategoryItem : EntitySingle 
    {
        public string Name { get; set; }

        private int _DeepLevel = 3;
        public int DeepLevel { get { return _DeepLevel; } set { _DeepLevel = value; } }
        public TreeDictionaryItem CreateTreeDictionaryItem()
        { 
            return new TreeDictionaryItem (){Name =this.Name ,TypeID =this.ID };
        }
    }
}
